package com.manger.utils;

import java.io.File;
import java.util.List;

public class DeCompressUtils {

    public static List<File> unZip(String zipFilePath, String destDir) throws Exception{
        if(zipFilePath.toLowerCase().endsWith(".zip")){
            return ZipUtil.unzip(zipFilePath,destDir);
        }else if(zipFilePath.toLowerCase().endsWith(".7z")){
            return SevenZipUtils.unzip(zipFilePath,destDir);
        }
        return null;
    }
    public static void main(String[] args) throws Exception{
        String zipFilePath=  "E:\\360MoveData\\Users\\liuhj\\Desktop\\余毅.zip";
        String destDir=  "E:\\360MoveData\\Users\\liuhj\\Desktop\\余毅";
        DeCompressUtils.unZip(zipFilePath,destDir);
    }
}
